package books.to.africa

class HomeController {

    def index = {redirect (action:home)}
    def home = {render (view: "siteHome.gsp")

}
	def send = {
sendMail {
  to "erica.l.burgess@maine.edu"
  subject "Friendly Greeting"
  body 'Who are you? Why are you looking at my books for Africa site?'
}
render "Email sent!"
}
	def register = {
		if(params.registerAs == 'd'){
			redirect(url: "/donorRegister/donorRegister")
		}
		else{
			redirect(url: "/teacherRegister/teacherRegister")
		}
	}
}
